from django.conf.urls import url

from verifications import views

urlpatterns = [
    url(r'^image_codes/(?P<image_code_id>.+)/$',views.ImageCodeView.as_view()),
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$',views.SMSCodeView.as_view()),
    url(r'^accounts/(?P<username>\w+)/sms/token/$', views.AccountsView.as_view()),
    url(r'^sms_codes/$',views.FindPasswordSMSView.as_view()),
    url(r'^accounts/(?P<username>[a-zA-Z0-9_-]{5,20})/password/token/$',views.FindPasswordSubmitSMSView.as_view()),
    url(r'^users/(?P<user_id>\d+)/password/',views.ChangePasswordView.as_view())
]
